<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
		<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
		<html>
		<head>
			<title>统计日汇总</title>
			<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
			<jsp:include page="/WEB-INF/views/include/newhead.jsp" />
		</head>
		<body class="childrenBody site-block">
			<header class="larry-personal-tit">
				<span>
				    <!-- contentStatDay 将user对应替换 -->
					<c:if test="${empty user.id}">新增</c:if>
					<c:if test="${not empty user.id}">修改</c:if>
				</span>
			</header>
			
			<div class="mainCon">
				<form:form id="inputForm" autocomplete="off" modelAttribute="contentStatDay" action="${ctx}/content/contentStatDay/save" method="post">
					<form:hidden path="id"/>
					<sys:message content="${message}"/>
					
					    <!-- 参考 排版后删除  开始 -->
						<div class="layui-form-item">
						    <div class="layui-inline">
						      <label class="layui-form-label"><font color="red">*</font>一行两列例子</label>
						      <div class="layui-input-inline">
						        <input type="text" placeholder="请输入一行两列例子" class="layui-input required" >
						      </div>
						</div>
						<div class="layui-inline">
							      <label class="layui-form-label">一行两列例子</label>
							      <div class="layui-input-inline">
							        <input type="text" placeholder="请输入一行两列例子"  class="layui-input">
							      </div>
							    </div>
						</div>
						
						 <!-- 一行显示一列例子 ：添加 layui-input-inline-one 样式  -->
						 <div class="layui-form-item">
							    <label class="layui-form-label">单行输入框</label>
							    <div class="layui-input-inline layui-input-inline-one">
							      <input type="text" name="title" placeholder="请输入单行输入框" class="layui-input">
							    </div>
                         </div>
					
					<!-- 参考 排版后删除  结束 -->
					
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">登录账号</label>
									<div class="layui-input-inline">
											<form:input path="account" placeholder="请输入登录账号"  maxlength="50" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">所属平台（1.抖音2.快手3.小红书）</label>
									<div class="layui-input-inline">
											<form:input path="platform" placeholder="请输入所属平台（1.抖音2.快手3.小红书）"  maxlength="50" class="layui-input"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">粉丝日数量</label>
									<div class="layui-input-inline">
											<form:input path="fansDay" placeholder="请输入粉丝日数量"  maxlength="50" class="layui-input digits"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">日阅读数/播放数</label>
									<div class="layui-input-inline">
											<form:input path="playsaDay" placeholder="请输入日阅读数/播放数"  maxlength="50" class="layui-input digits"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">日转发总数据量</label>
									<div class="layui-input-inline">
											<form:input path="forwardDay" placeholder="请输入日转发总数据量"  maxlength="50" class="layui-input digits"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">日评论数总量</label>
									<div class="layui-input-inline">
											<form:input path="commentNumDay" placeholder="请输入日评论数总量"  maxlength="50" class="layui-input digits"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">日点赞总数量</label>
									<div class="layui-input-inline">
											<form:input path="likeDay" placeholder="请输入日点赞总数量"  maxlength="50" class="layui-input digits"/>
									</div>
							   </div>
							</div>
							<div class="layui-form-item">
							   <div class="layui-inline">
									<label class="layui-form-label">备注信息</label>
									<div class="layui-input-inline">
											<form:textarea path="remarks" placeholder="请输入备注信息" htmlEscape="false" rows="4" maxlength="255" class="layui-textarea"/>
									</div>
							   </div>
							</div>
					
					<div class="layui-form-item bottom_xf">
						<div class="layui-input-block input500">
							<button type="button" class="layui-btn layui-btn-primary" onclick="gotoView('${ctx}/content/contentStatDay/');">返回</button>
							<button class="layui-btn" type="submit">保存</button>
							<button onclick="formReset();" type="button"  class="layui-btn layui-btn-danger">重置</button>
						</div>
					</div>
				</form:form>
			</div>

            <jsp:include page="/WEB-INF/views/include/pageJs.jsp" />
			
			<script type="text/javascript">
				$(document).ready(function() {
					$("#inputForm").validate({
						submitHandler: function(form){
							loading('正在提交，请稍等...');
							form.submit();
						},
					/**	在做异步验证的时候需要添加
					    rules: {
						
						},
						messages: {
						
						}, */
						errorContainer: "#messageBox",
						errorPlacement: function(error, element) {
							$("#messageBox").text("输入有误，请先更正。");
							if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
								error.appendTo(element.parent().parent());
							} else {
								error.insertAfter(element);
							}
						}
					});
				});
			</script>
		</body>
		</html>